package cn.gcyl.module.biz.controller.admin.membershipsettings.vo;

import cn.gcyl.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.time.LocalDateTime;

import static cn.gcyl.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 会员设置分页 Request VO")
@Data
public class MembershipSettingsPageReqVO extends PageParam {

    @Schema(description = "会员名称", example = "李四")
    private String membershipName;

    @Schema(description = "价格", example = "16083")
    private BigDecimal price;

    @Schema(description = "划线价格", example = "23292")
    private BigDecimal underlinedPrice;

    @Schema(description = "咨询次数(次数)")
    private Long consultationFrequency;

    @Schema(description = "报名次数(次数)")
    private Long registrationsFrequency;

    @Schema(description = "有效期(天)")
    private Integer lifeSpan;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

}